<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下后台管理</title>

    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin">
<include file="Public/header"/>

<div id="wrap" style="margin-bottom: 60px">
    <div class="container-fluid">
        <include file="Public/sidmenu"/>
        <div class="col-md-10 col-md-offset-2 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="bg-white" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">修改新闻信息</p>
            </h2>
            <hr>
        </div>

        <div class="col-md-12  col-md-offset-3" style="">
            <div class="row">
                <div class="col-md-1"></div>
                <div class="col-md-5 col-md-offset-1" style="border: solid 1px #d3d8cf;border-radius: 5%">
                    <volist name="list" id="vo">
                        <form  method="post"  class="form-horizontal" action="{:U('News/reset')}?id={$vo['id']}"  enctype="multipart/form-data" >
                            <table class="table"  style="width: 100%"   >
                                <br><br>
                                <input type="hidden" name="id" value="{$vo.id}">
                                <tr>
                                    <img src="__PUBLIC__/images/pic/{$vo.n_pic}" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                                    <br>
                                </tr>
                                <tr>
                                    <td style="text-align: right; " > 类别名:</td>
                                    <td style="padding-right: 20%">
                                        <select class="form-control" name="tid" required>
                                            <option value="0">{$vo['tid']}</option>
                                            <option value="1">体育</option>
                                            <option value="2">时政</option>
                                            <option value="3">娱乐</option>
                                            <option value="4">科技</option>
                                            <option value="5">军事</option>
                                            <option value="6">游戏</option>
                                            <option value="7">视频</option>
                                        </select>
                                    </td>

                                </tr>
                                <tr>
                                    <td style="text-align: right;"> 标题:</td>
                                    <td style="padding-right: 20%" ><input class="form-control" placeholder="{$vo['title']}" type="text" name="title" id="title" value="{$vo['title']}"></td>

                                </tr>
                                <tr>
                                    <td style="text-align: right;"> 内容:</td>
                                    <td style="padding-right: 20%" >
                                    <textarea class="form-control" rows="6" type="text" name="content" id="content" placeholder="{$vo['content']}" value="{$vo['content']}">
                                        {$vo['content']}
                                    </textarea>
                                    </td>

                                </tr>
                                <tr>
                                    <td style="text-align: right;"> 状态:</td>
                                    <td style="padding-right: 20%"><if condition="($vo.satus eq 1)">通过<else/>未通过</if></td>
                                </tr>

                                <tr>
                                    <td style="text-align: right;"> 发布人:</td>
                                    <td style="padding-right: 20%" ><input class="form-control" placeholder="{$vo['username']}" type="text" name="adduser" id="adduser" value="{$vo['username']}"></td>

                                </tr>
                                <tr>
                                    <td style="text-align: right;"> 置顶:</td>
                                    <td style="padding-right: 20%"><if condition="($vo.top eq 1)">置顶<else/>未置顶</if></td>
                                </tr>
                                <!--<tr>-->
                                    <!--<td style="text-align: right;"> 新闻图片:</td>-->
                                    <!--<td style="padding-right: 20%" > <input class="form-control" placeholder="{$vo['pic']}" type="file" name="pic" id="pic" required></td>-->

                                <!--</tr>-->

                                <tr>
                                    <td style="text-align: left;padding-left: 20%"> 新闻图片:</td>
                                    <td style="padding-right: 20%" >
                                        <!--<input class="form-control" placeholder="{$vo['pic']}" type="file" name="pic" id="pic" required>-->
                                        <div class="row" style="margin-top: 2%">
                                            <div class=" col-md-6 col-md-offset-0">
                                                <div class="fileupload fileupload-new" data-provides="fileupload" style=""><input type="hidden" value="" name="pic" >
                                                    <div class="fileupload-new img-thumbnail"
                                                         style="width: 110px; height: 110px;background-color:#5f5f5f">
                                                        <img src="">
                                                    </div>
                                                    <div class="fileupload-preview fileupload-exists img-thumbnail"
                                                         style="width: 110px; max-height: 110px;"></div>


                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="pic">
                   </span>
                                                    <span style="float: left"><a class="btn btn-default fileupload-exists" data-dismiss="fileupload" href="#">撤销</a></span>
                                                </div>
                                            </div>
                                        </div>
                                    </td>

                                </tr>


                                <tr style="height: 120px;">
                                    <div> <td colspan="2" style=";padding-left: 40%;" >
                                        <input style="width: 30%" class="btn btn-block btn-info "  type="submit" value="修改">
                                        <a href="{:U('News/index')}" >
                                            <button type="button" class="btn btn-success" style="width: 30%">返回</button>
                                        </a>
                                    </td></div>
                                </tr>
                            </table>
                        </form>
                    </volist>

                </div>
                <div class="col-md-1">

                </div>
            </div>











        </div>


    </div>
</div>
</body>
</html>
